package com.webproject.shop.service;

import com.webproject.shop.pojo.Product;

import java.util.List;

public interface ProductService {

    Product findProductById(int id);

    boolean decreaseAmount(Integer id,Integer amount);

    List<Product> findAll();

    List<Product> selectByClass(String proClass);

    List<Product> selectByName(String name);

}
